home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 5791-.end / dmg-6260 / articles / address.doc < prev    next >
Text File  |  1993-06-01  |  2KB  |  55 lines

  1.                            USEFUL ADDRESSES
  2.  
  3. No, this isn't a contact service!  Here,  I will list some addresses in
  4. memory which may be useful to  programmers. Unfortunately, I don't know
  5. many, but here they are anyway:
  6.  
  7. $FF8800  (PSG - You can do 'VU' meters with this one:
  8.           poke $FF8800,8 : V1=peek($FF8800)
  9.           poke $FF8800,9 : V2=peek($FF8800)
  10.           poke $FF8800,10 : V3=peek($FF8800)
  11.           You get a value from 0 to 15 depending on the volume of the
  12.           particular channel).
  13.  
  14. $FF8240  colour 0 (Hardware colour registers)
  15. $FF8242  colour 1
  16. $FF8244  colour 2 (Note, each colour is a 'word')
  17. $FF8246  colour 3 (so use DOKE or DEEK)
  18. $FF8248  colour 4
  19. $FF824A  colour 5
  20. $FF824C  colour 6
  21. $FF824E  colour 7
  22. $FF8250  colour 8
  23. $FF8252  colour 9
  24. $FF8254  colour 10
  25. $FF8256  colour 11
  26. $FF8258  colour 12
  27. $FF825A  colour 13
  28. $FF825C  colour 14
  29. $FF825E  colour 15
  30.  
  31. $FF8203  Produces a rather interesting screen offset thingy.
  32.          POKE $FF8203,128 is normal. Try 1,2...
  33.  
  34. $FF820A  You can use this one to either add that professional
  35.          touch to a demo, or just to panic the unsuspecting ST
  36.          user. POKE $FF820A,254 is normal. 0 flickers the
  37.          screen, 1 slowly fades it, 5 angles the screen and
  38.          sometimes H-shifts it. Try others...
  39.  
  40. $FF820F  This is the width of the screen. 0 is default, so try
  41.          others.
  42.  
  43. $9F8     Checks to see if the disk is write-protected. (Longword)
  44.          ? LEEK($9F8) returns -1 for protected, 0 for enabled.
  45.  
  46. $FB0001  Reads the sample cartridge (Byte)
  47.  
  48. $4D2     A vertical-blank interrupt vector. You assign music to this
  49.          so it plays continuously.
  50.  
  51. That's all I know, I  am  afraid.  But  these  ones  above may keep you
  52. interested for a while!
  53.  
  54. Article: BLACK EAGLE 1/6/93
  55.